package com.party.core.model.coupon;

import com.party.core.model.BaseModel;

import java.util.Date;

/**
 * @author：yifeng
 * @description： 核销码
 * @date：Created in  2017/11/27 上午 9:50
 **/
public class CouponCode extends BaseModel {
    // 核销码
    private String verifyCode;
    // 是否领取 1：领取 2：未领取
    private Integer isUsed;
    // 票id
    private String couponId;
    // 是否消费（1：是 2：否）
    private Integer isSpending;
    // 消费日期
    private Date spendingTime;

    public CouponCode() {

    }

    public CouponCode(String verifyCode, String couponId) {
        this.verifyCode = verifyCode;
        this.couponId = couponId;
    }

    public CouponCode(String couponId) {
        this.couponId = couponId;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public String getCouponId() {
        return couponId;
    }

    public void setCouponId(String couponId) {
        this.couponId = couponId;
    }

    public Integer getIsSpending() {
        return isSpending;
    }

    public void setIsSpending(Integer isSpending) {
        this.isSpending = isSpending;
    }

    public Date getSpendingTime() {
        return spendingTime;
    }

    public void setSpendingTime(Date spendingTime) {
        this.spendingTime = spendingTime;
    }
}
